package com.hdu.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 老师学历类型枚举
 *
 * @author xiaobai
 * @since 2023/11/1
 */
@Getter
public enum EducationLabel {

    DOCTOR(1, "博士"),
    MASTER(2, "硕士"),
    COLLEGE(3, "本科"),
    ASSOCIATE(4, "大专"),
    TECHNICAL(5, "中专"),
    SENIOR(6, "高中"),
    JUNIOR(7, "初中"),
    OTHER(8, "其他");

    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;

    EducationLabel(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
